.wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    
    /* 自定义滚动条样式 */
    &::-webkit-scrollbar {
        width: 6px;
    }
    
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
        
        &:hover {
            background: #a8a8a8;
        }
    }
}

.custom_option {
    aspect-ratio: 1;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    color: #18a0fb;
    
    &:hover {
        border-color: #18a0fb;
        background: #f0f8ff;
    }
    
    svg {
        width: 24px;
        height: 24px;
    }
    
    span {
        font-size: 12px;
        color: #18a0fb;
    }
}

.background_option {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    
    &:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    &.selected {
        border-color: #18a0fb;
        box-shadow: 0 0 0 2px rgba(24, 160, 251, 0.2);
    }
}
